package com.wj.ballcat.demo.converter;

import com.wj.ballcat.demo.model.dto.DemoUserDTO;
import com.wj.ballcat.demo.model.entity.DemoUser;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface DemoUserConverter {

	DemoUserConverter INSTANCE = Mappers.getMapper(DemoUserConverter.class);

	DemoUserDTO convert(DemoUser demoUser);

	List<DemoUserDTO> convertDtos(List<DemoUser> demoUsers);
}
